﻿// ===============================================================================
// Project Name        :    Gfw.Web.Models.User
// Project Description :    
// ===============================================================================
// Class Name          :    UserRegisterModel
// Namespace:          :    Gfw.Web.Models.User
// Class Version       :    v1.0.0.0
// Class Description   :    
// CLR Version:        :    4.0.30319.17626
//Author               :    lif
// Machine             :    ADICO-PC
// Create Time         :    2012/6/30 10:40:45
// Update Time         :    2012/6/30 10:40:45
// ===============================================================================
// Copyright © lif 2012 . All rights reserved.
// ===============================================================================
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace Gfw.Web.Models.User
{

    public class UserRegisterModel
    {
        [Required]
        [Display(Name = "用户登录名：")]
        [StringLength(20, MinimumLength=6)]
        public string LoginName { get; set; }

        [Required]
        [Display(Name = "初始化密码：")]
        [DataType(DataType.Password)]
        public string Password { get; set; }

        [DataType(DataType.Password)]
        [Display(Name = "确认密码：")]
        [Compare("Password", ErrorMessage = "两次密码输入不一致.")]
        public string ConfirmPassword { get; set; }

        [Required]
        public string Parentid { get; set; }

        [Required]
        public int ParentArea { get; set; }

        public string ParentName { get; set; }

        public string Recommender { get; set; }

        public string RecommenderName { get; set; }

        public string Code { get; set; }

        public string Id { get; set; }

        public Int64 CodeNumber { get; set; }



        #region 注册时立即转账，防止用户恶意注册

        /// <summary>
        /// 用户电子币余额
        /// </summary>
        [DataType(DataType.Currency)]
        [Display(Name = "D币余额：")]
        public decimal Balance { get; set; }

        #endregion


    }
}
